﻿
@{
    ViewData["Title"] = "类别";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model IEnumerable<IVBlog.Models.Article>
<div class="card">
    <div class="card-body">
        <p id="hitokoto_text">:D 一言获取中...</p>
        <h1><i class="bi bi-folder2-open"></i>&nbsp;分类：<span>@ViewBag.Cname</span></h1>
        <p><i class="bi bi-files">&nbsp;共<span>@ViewBag.Cnums</span>篇文章</i></p>
    </div>
</div>
@foreach (var item in Model)
{
    <div class="card" style="margin:50px">
        <div class="card-header text-center">
            <h5 class="card-title"><a href="~/Home/Article/@item.ArticleId" class="card-link">@item.Aname</a></h5>
        </div>
        <div class="card-body text-center">
            <p class="card-text">@item.Asynopsis</p>
            <span data-toggle="tooltip" title="发布的日期"><i class="bi bi-calendar-minus"></i>&nbsp;@item.Atime&nbsp;&nbsp;</span>
            <span data-toggle="tooltip" title="最后一次修改时间"><i class="bi bi-calendar-week"></i>&nbsp;@(item.AreTime==null?"无修改":""+item.AreTime)&nbsp;&nbsp;</span>
            <p class="card-text">
                <a href="/Home/Dynamic" class="card-link"><i class="bi bi-person"></i>&nbsp;@item.Author</a>&nbsp;&nbsp;
                <i class="bi bi-hand-thumbs-up"></i>&nbsp;<span data-toggle="tooltip" title="点赞数">@item.Likes</span>&nbsp;&nbsp;
                <i class="bi bi-chat-left-dots"></i>&nbsp;<span data-toggle="tooltip" title="评论数">@item.Remark.Count()</span>&nbsp;&nbsp;
            </p>
        </div>
        <div class="card-footer bg-white">
            <i class="bi bi-folder2"></i><span class="card-text">&nbsp;<a href="/Home/Type/@item.CategoryId" class="card-link">@item.Category.Cname</a></span>
        </div>
    </div>
}


